package com.example.zhu.vo;

import com.example.zhu.entity.OrderCount;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderMaxVO {

    private Integer id;
    private Long number;
    private Integer productId;
    private Double amount;
    private Integer orderStatus;
    private String openid;
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String expectTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime;
    private Integer count;
    //订单类型
    private String orderType;
    //送达照片
    private String imageOver;
    private Integer couponId;
    private String takeAddress;
    private String packageInfo;
    private String remark;
    private String address;
    private String takeOpenid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime takeTime;
    private String takePhone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime takeOrderTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deliveryTime;
    private List<String> imgUrls;
    //取件码
    private List<OrderCount> orderCounts;

    //是否使用优惠券
    private Integer isUseCoupon;

    //优惠券名字
    private String name;

    private Double value;

}
